import request from '@/utils/request'

// 查询病历记录列表
export function listMedicalRecord(query) {
  return request({
    url: '/system/MedicalRecord/list',
    method: 'get',
    params: query
  })
}

export function getByRegisterId(RegisterId) {
  return request({
    url: '/system/MedicalRecord/getByRegisterId',
    method: 'get',
    params: {
      RegisterId
    }
  })
}

// 查询病历记录详细
export function getMedicalRecord(Id) {
  return request({
    url: '/system/MedicalRecord/' + Id,
    method: 'get'
  })
}

// 新增病历记录
export function addMedicalRecord(data) {
  return request({
    url: '/system/MedicalRecord',
    method: 'post',
    data: data
  })
}

// 修改病历记录
export function updateMedicalRecord(data) {
  return request({
    url: '/system/MedicalRecord',
    method: 'put',
    data: data
  })
}

// 删除病历记录
export function delMedicalRecord(Id) {
  return request({
    url: '/system/MedicalRecord/' + Id,
    method: 'delete'
  })
}
